package com.lkf.rpc.stub;

import java.io.Serializable;

/**
 * 封装类，用于客户端与服务端接口数据交互时，将客户端请求封装为类
 * 实现序列化接口，才能进行网络传输
 */
public class ClassInfo implements Serializable {

    // 序列号
    private static final long serialVersionUID = 1L;
    // 封装的类名
    private String className;
    // 封装的方法名
    private String methodName;
    // 封装的方法参数类型
    private Class<?>[] types;
    // 封装的方法入参
    private Object[] args;
    // 封装的接口类的包名
    private String packageName;

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Class<?>[] getTypes() {
        return types;
    }

    public void setTypes(Class<?>[] types) {
        this.types = types;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }
}
